<?php
$arrGameLQ = array(
    "langco" => array("class" => "langco gate", "link" => "javascript: void(0)"),
    "bacay" => array("class" => "bacay", "link" => ""),
    "tala" => array("class" => "tala", "link" => ""),
    "chan" => array("class" => "chan", "link" => ""),
    "xito" => array("class" => "xito", "link" => ""),
    "tienlen" => array("class" => "tienlen", "link" => ""),
    "binh" => array("class" => "binh", "link" => ""),
    "texas" => array("class" => "texas", "link" => ""));
$arrGameLC = array(
    "langquat" => array("class" => "langquat gate", "link" => "javascript: void(0)"),
    "cotuong" => array("class" => "cotuong", "link" => ""),
    "covua" => array("class" => "covua", "link" => ""),
    "cocaro" => array("class" => "cocaro", "link" => ""));
echo "<div id=\"LQ_menu-game\">";
$arrGame = array($arrGameLQ, $arrGameLC);
for ($i = 0; $i < count($arrGame); $i++) {
    echo "<div class=\"game\">";
    foreach ($arrGame[$i] as $game => $param) {
        echo "<div class=\"item " . $param["class"] . "\">" .
            "<a href=\"" . $param['link'] . "\"><img alt=\"\" src=\"images/" . $game . ".png\" /></a>" .
            "</div>";
    }
    echo "</div>";
}
echo "</div><!--end#LQ_menu-game-->";

?>